<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
var worker = startWorker('./resources/canvas-createImageBitmap-invalid-args-in-workers.js');

var canvas = document.createElement("canvas");
canvas.setAttribute("width", "50");
canvas.setAttribute("height", "50");
var ctx = canvas.getContext("2d");
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 50, 50);

var data = ctx.getImageData(0, 0, 50, 50);
worker.postMessage(data);
</script>
</body>
</html>
